package com.ctshk.app.system.controller;

import com.ctshk.common.dto.Result;
import com.ctshk.common.web.support.BaseController;
import com.ctshk.rpc.system.dto.app.ScenicProductTypeRedisDTO;
import com.ctshk.rpc.system.service.app.IScenicProductTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *     景区门票产品分类 控制器
 * </p>
 * @author 黄先
 */
@Api(value = "景区门票产品分类", tags = "景区门票产品分类")
@RestController
@RequestMapping("/main-data-scenic-productType")
public class MainDataScenicProductTypeController extends BaseController {
    @DubboReference
    IScenicProductTypeService iScenicProductTypeService;

    @GetMapping("/selectScenicProductTypeList")
    @ApiOperation(value = "查询景区门票分类列表", notes = "查询景区门票分类列表")
    public Result<List<ScenicProductTypeRedisDTO>> selectScenicProductTypeList(){
        return iScenicProductTypeService.selectScenicProductTypeList();
    }
}
